package org.edu.modules.classSchedule.service.impl;

import org.edu.modules.classSchedule.entity.VeJwSection;
import org.edu.modules.classSchedule.mapper.VeJwSectionMapper;
import org.edu.modules.classSchedule.service.IVeJwSectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description: 排课节信息
 * @Author:
 * @Date:   2021-05-12
 * @Version: V1.0
 */
@Service
public class VeJwSectionServiceImpl extends ServiceImpl<VeJwSectionMapper, VeJwSection> implements IVeJwSectionService {
    @Autowired
    private VeJwSectionMapper veJwSectionMapper;

    @Override
    public int changeStatusByIds(String[] ids, int status) {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("ids", ids);
        map.put("status", status);
        return veJwSectionMapper.changeStatusByIds(map);
    }
}
